﻿// Java Documen


//酒店根据城市查找三字码 
function getThreeWordByCitysFlight(cityName) 
{ 
        var threeWord = ""; 
        for(var i = 0,len = citysFlight.length;i<len;i++) 
        { 
                if(cityName == citysFlight[i][1]) 
                { 
                        threeWord = citysFlight[i][0]; 
                        break; 
                } 
        } 
        return threeWord; 
} 
function getThreeWordByCitysHotel(cityName) {var threeWord = ""; 
        for(var i = 0,len = citysHotel.length;i<len;i++) 
        { 
                if(cityName == citysHotel[i][1]) 
                { 
                        threeWord = citysHotel[i][0]; 
                        break; 
                } 
        } 
        return threeWord; 
} 


//初始化常用城市
var commoncitys,citys;

var commoncitysHotel = new Array();
commoncitysHotel[0]=new Array('SZX','深圳','Shenzhen','SZ');
commoncitysHotel[1]=new Array('PEK','北京','Beijing','BJ');
commoncitysHotel[2]=new Array('SHA','上海','Shanghai','SH');
commoncitysHotel[3]=new Array('CAN','广州','Guangzhou','GZ');
commoncitysHotel[4]=new Array('HGH','杭州','Hangzhou','HZ');
commoncitysHotel[5]=new Array('CKG','重庆','Chongqing','CQ');
commoncitysHotel[6]=new Array('XIY','西安','Xian','XA');
commoncitysHotel[7]=new Array('WUH','武汉','Wuhan','WH');
commoncitysHotel[8]=new Array('NKG','南京','Nanjing','NJ');
commoncitysHotel[9]=new Array('SYX','三亚','Sanya','SY');
var citysHotel = new Array();
citysHotel[0]=new Array('ABA','阿坝州','Abeizhou','ABZ');
citysHotel[1]=new Array('ACH','阿城','Acheng','AC');
citysHotel[2]=new Array('AKU','阿克苏','Akesu','AKS');
citysHotel[3]=new Array('AAT','阿勒泰','Aletai','ALT');
citysHotel[4]=new Array('ATU','阿图什','Atushi','ATS');
citysHotel[5]=new Array('ANJ','安吉','Anji','AJ');
citysHotel[6]=new Array('AKA','安康','Ankang','AK');
citysHotel[7]=new Array('ANL','安陆','Anlu','AL');
citysHotel[8]=new Array('AQG','安庆','Anqing','AQ');
citysHotel[9]=new Array('ANS','安顺','Anshun','AS');
citysHotel[10]=new Array('AYN','安阳','Anyang','AY');
citysHotel[11]=new Array('AOG','鞍山','Anshan','AS');
citysHotel[12]=new Array('MFM','澳门','Aomen','AM');
citysHotel[13]=new Array('BAZ','巴中','Bazhong','BZ');
citysHotel[14]=new Array('BAC','白城','Baicheng','BC');
citysHotel[15]=new Array('BAS','白山','Baishan','BS');
citysHotel[16]=new Array('BSI','百色','Baise','BS');
citysHotel[17]=new Array('BFU','蚌埠','Bangbu','BB');
citysHotel[18]=new Array('BAV','包头','Baotou','BT');
citysHotel[19]=new Array('BAJ','宝鸡','Baoji','BJ');
citysHotel[20]=new Array('BAD','保定','Baoding','BD');
citysHotel[21]=new Array('BSD','保山','Baoshan','BS');
citysHotel[22]=new Array('BEA','北安','Beian','BA');
citysHotel[23]=new Array('BDH','北戴河','Beidaihe','BDH');
citysHotel[24]=new Array('BHY','北海','Beihai','BH');
citysHotel[25]=new Array('PEK','北京','Beijing','BJ');
citysHotel[26]=new Array('BEL','北流','Beiliu','BL');
citysHotel[27]=new Array('BEN','北宁','Beining','BN');
citysHotel[28]=new Array('BEX','本溪','Benxi','BX');
citysHotel[29]=new Array('BIJ','毕节','Bijie','BJ');
citysHotel[30]=new Array('BIZ','滨州','Binzhou','BZ');
citysHotel[31]=new Array('BOZ','亳州','Haozhou','HZ');
citysHotel[32]=new Array('BOL','博乐','Bole','BL');
citysHotel[33]=new Array('CAZ','沧州','Cangzhou','CZ');
citysHotel[34]=new Array('CDA','昌都','Changdu','CD');
citysHotel[35]=new Array('CDU','昌都地区','Changdudiqu','CDDQ');
citysHotel[36]=new Array('CHJ','昌吉','Changji','CJ');
citysHotel[37]=new Array('CGQ','长春','Changchun','CC');
citysHotel[38]=new Array('CGE','长葛','Changge','CG');
citysHotel[39]=new Array('CSX','长沙','Changsha','CS');
citysHotel[40]=new Array('CIH','长治','Changzhi','CZ');
citysHotel[41]=new Array('CGD','常德','Changde','CD');
citysHotel[42]=new Array('CHN','常宁','Changning','CN');
citysHotel[43]=new Array('CHS','常熟','Changshu','CS');
citysHotel[44]=new Array('CZX','常州','Changzhou','CZ');
citysHotel[45]=new Array('CHU','巢湖','Chaohu','CH');
citysHotel[46]=new Array('CHG','朝阳','Chaoyang','CY');
citysHotel[47]=new Array('CHY','潮阳','Chaoyang','CY');
citysHotel[48]=new Array('CZH','潮州','Chaozhou','CZ');
citysHotel[49]=new Array('CEZ','郴州','Chenzhou','CZ');
citysHotel[50]=new Array('CTU','成都','Chengdu','CD');
citysHotel[51]=new Array('CHD','承德','Chengde','CD');
citysHotel[52]=new Array('CHA','澄海','Chenhai','CH');
citysHotel[53]=new Array('CZU','池州','Chizhou','CZ');
citysHotel[54]=new Array('CHB','赤壁','Chibi','CB');
citysHotel[55]=new Array('CIF','赤峰','Chifeng','CF');
citysHotel[56]=new Array('CHZ','崇州','Chongzhou','CZ');
citysHotel[57]=new Array('CUZ','滁州','Chuzhou','CZ');
citysHotel[58]=new Array('CHX','楚雄','Chunxiong','CX');
citysHotel[59]=new Array('CIX','慈溪','Cixi','CX');
citysHotel[60]=new Array('COH','从化','Conghua','CH');
citysHotel[61]=new Array('DZH','达州','Dazhou','DZ');
citysHotel[62]=new Array('DAA','大安','Daan','DA');
citysHotel[63]=new Array('DAF','大丰','Dafeng','DF');
citysHotel[64]=new Array('DLU','大理','Dali','DL');
citysHotel[65]=new Array('DLC','大连','Dalian','DL');
citysHotel[66]=new Array('DAQ','大庆','Daqing','DQ');
citysHotel[67]=new Array('DAT','大同','Datong','DT');
citysHotel[68]=new Array('DAX','大兴安岭','Daxinganling','DXAL');
citysHotel[69]=new Array('DYE','大冶','Daye','DY');
citysHotel[70]=new Array('DDG','丹东','Dandong','DD');
citysHotel[71]=new Array('DAJ','丹江口','Danjiangkou','DJK');
citysHotel[72]=new Array('DYA','丹阳','Danyang','DY');
citysHotel[73]=new Array('DAZ','儋州','Danzhou','DZ');
citysHotel[74]=new Array('DAY','当阳','Dangyang','DY');
citysHotel[75]=new Array('DEL','德令哈','Delingha','DLH');
citysHotel[76]=new Array('DEY','德阳','Deyang','DY');
citysHotel[77]=new Array('DZO','德州','Dezhou','DZ');
citysHotel[78]=new Array('DEF','登封','Dengfeng','DF');
citysHotel[79]=new Array('DEZ','邓州','Dengzhou','DZ');
citysHotel[80]=new Array('DIG','迪庆','Diqing','DQ');
citysHotel[81]=new Array('DIQ','迪庆州','Diqingzhou','DQZ');
citysHotel[82]=new Array('DXN','定西','Dingxi','DX');
citysHotel[83]=new Array('DIX','定西地区','Dingxidiqu','DXDQ');
citysHotel[84]=new Array('DOT','东台','Dongtai','DT');
citysHotel[85]=new Array('DGM','东莞','Dongguan','DG');
citysHotel[86]=new Array('DOX','东兴','Dongxing','DX');
citysHotel[87]=new Array('DYN','东阳','Dongyang','DY');
citysHotel[88]=new Array('DOY','东营','Dongying','DY');
citysHotel[89]=new Array('DOJ','都江堰','Dujiangyan','DJY');
citysHotel[90]=new Array('DUJ','都匀','Duyun','DY');
citysHotel[91]=new Array('DUH','敦化','Dunhua','DH');
citysHotel[92]=new Array('DNH','敦煌','Dunhuang','DH');
citysHotel[93]=new Array('EMS','峨眉山','Emeishan','EMS');
citysHotel[94]=new Array('ERD','鄂尔多斯','eerduosi','EEDS');
citysHotel[95]=new Array('EZH','鄂州','Ezhou','EZ');
citysHotel[96]=new Array('ENP','恩平','Enping','EP');
citysHotel[97]=new Array('ENH','恩施','Enshi','ES');
citysHotel[98]=new Array('ERL','二连浩特','Erlianhaote','ELHT');
citysHotel[99]=new Array('PAY','番禺','Panyu','PY');
citysHotel[100]=new Array('FAC','防城港','Fangchenggang','FCG');
citysHotel[101]=new Array('FEC','丰城','Fengcheng','FC');
citysHotel[102]=new Array('FEH','奉化','Fenghua','FH');
citysHotel[103]=new Array('FUO','佛山','Foshan','FS');
citysHotel[104]=new Array('FUA','福安','Fuan','FA');
citysHotel[105]=new Array('FUD','福鼎','Fuding','FD');
citysHotel[106]=new Array('FUQ','福清','Fuqing','FQ');
citysHotel[107]=new Array('FOC','福州','Fuzhou','FZ');
citysHotel[108]=new Array('FUS','抚顺','Fushun','FS');
citysHotel[109]=new Array('FUZ','抚州','Fuzhou','FZ');
citysHotel[110]=new Array('FUK','阜康','Fukang','FK');
citysHotel[111]=new Array('FUX','阜新','Fuxin','FX');
citysHotel[112]=new Array('FUG','阜阳','Fuyang','FY');
citysHotel[113]=new Array('FUY','富阳','Fuyang','FY');
citysHotel[114]=new Array('GAZ','甘孜州','Ganzizhou','GZZ');
citysHotel[115]=new Array('GZH','赣州','Ganzhou','GZ');
citysHotel[116]=new Array('GAM','高明','Gaoming','GM');
citysHotel[117]=new Array('GAY','高邮','Gaoyou','GY');
citysHotel[118]=new Array('GAC','藁城','Gaocheng','GC');
citysHotel[119]=new Array('GOQ','格尔木','Geermu','GEM');
citysHotel[120]=new Array('GEJ','个旧','Gejiu','GJ');
citysHotel[121]=new Array('GOY','巩义','Gongyi','GY');
citysHotel[122]=new Array('GUA','广安','Guangan','GA');
citysHotel[123]=new Array('GHN','广汉','Guanghan','GH');
citysHotel[124]=new Array('GUS','广水','Guangshui','GS');
citysHotel[125]=new Array('GUY','广元','Guangyuan','GY');
citysHotel[126]=new Array('CAN','广州','Guangzhou','GZ');
citysHotel[127]=new Array('GUG','贵港','Guizhou','GZ');
citysHotel[128]=new Array('GUX','贵溪','Guixi','GX');
citysHotel[129]=new Array('KWE','贵阳','Guiyang','GY');
citysHotel[130]=new Array('KWL','桂林','Guilin','GL');
citysHotel[131]=new Array('GUP','桂平','Guiping','GP');
citysHotel[132]=new Array('HRB','哈尔滨','Haerbin','HEB');
citysHotel[133]=new Array('HMI','哈密','Hami','HM');
citysHotel[134]=new Array('HDO','海东','Haidong','HD');
citysHotel[135]=new Array('HAD','海东地区','Haidongdiqu','HDDQ');
citysHotel[136]=new Array('HAK','海口','Haikou','HK');
citysHotel[137]=new Array('HAL','海林','Hailin','HL');
citysHotel[138]=new Array('HAM','海门','Haimen','HM');
citysHotel[139]=new Array('HAN','海南州','Hainanzhou','HNZ');
citysHotel[140]=new Array('HAI','海宁','Haining','HN');
citysHotel[141]=new Array('HDN','邯郸','Handan','HD');
citysHotel[142]=new Array('HAC','韩城','Hancheng','HC');
citysHotel[143]=new Array('HCH','汉川','Hanchuan','HC');
citysHotel[144]=new Array('HZG','汉中','Hanzhong','HZ');
citysHotel[145]=new Array('HGH','杭州','Hangzhou','HZ');
citysHotel[146]=new Array('HFE','合肥','Hefei','HF');
citysHotel[147]=new Array('HEZ','合作','Hezuo','HZ');
citysHotel[148]=new Array('HTN','和田','Hetian','HT');
citysHotel[149]=new Array('HEC','河池','Hechi','HC');
citysHotel[150]=new Array('HEY','河源','Heyuan','HY');
citysHotel[151]=new Array('HZE','菏泽','Heze','HZ');
citysHotel[152]=new Array('HZH','贺州','Hezhou','HZ');
citysHotel[153]=new Array('HEB','鹤壁','Hebi','HB');
citysHotel[154]=new Array('HEG','鹤岗','Hegang','HG');
citysHotel[155]=new Array('HSH','鹤山','Heshan','HS');
citysHotel[156]=new Array('HEK','黑河','Heihe','HH');
citysHotel[157]=new Array('HSU','衡水','Hengshui','HS');
citysHotel[158]=new Array('HNY','衡阳','Hengyang','HY');
citysHotel[159]=new Array('HOH','洪湖','Honghu','HH');
citysHotel[160]=new Array('HOM','侯马','Houma','HM');
citysHotel[161]=new Array('HET','呼和浩特','Huhehaote','HHHT');
citysHotel[162]=new Array('HUL','呼伦贝尔','Hulunbeier','HLBE');
citysHotel[163]=new Array('HZO','湖州','Huzhou','HZ');
citysHotel[164]=new Array('HLD','葫芦岛','Huludao','HLD');
citysHotel[165]=new Array('HLI','虎林','Hulin','HL');
citysHotel[166]=new Array('HDU','花都','Huadu','HD');
citysHotel[167]=new Array('HUD','华甸','Huadian','HD');
citysHotel[168]=new Array('HYI','华阴','Huaying','HY');
citysHotel[169]=new Array('HZU','化州','Huazhou','HZ');
citysHotel[170]=new Array('HUH','怀化','Huaihua','HH');
citysHotel[171]=new Array('HUA','淮安','Huaian','HA');
citysHotel[172]=new Array('HUB','淮北','Huaibei','HB');
citysHotel[173]=new Array('HUI','淮南','Huainan','HN');
citysHotel[174]=new Array('HUG','黄冈','Huanggang','HG');
citysHotel[175]=new Array('HYE','黄骅','Huanghua','HH');
citysHotel[176]=new Array('HUN','黄南州','Huangnanzhou','HNZ');
citysHotel[177]=new Array('TXN','黄山','Huangshan','HS');
citysHotel[178]=new Array('HAI','海宁','Haining','HN');
citysHotel[179]=new Array('HUS','黄石','Huangshi','HS');
citysHotel[180]=new Array('HYN','黄岩','Huangyan','HY');
citysHotel[181]=new Array('HUC','晖春','Huichun','HC');
citysHotel[182]=new Array('HYA','惠阳','Huiyang','HY');
citysHotel[183]=new Array('HUZ','惠州','Huizhou','HZ');
citysHotel[184]=new Array('JXI','鸡西','Jixi','JX');
citysHotel[185]=new Array('KNC','吉安','Jian','JA');
citysHotel[186]=new Array('JIL','吉林','Jilin','JL');
citysHotel[187]=new Array('JSH','吉首','Jishou','JS');
citysHotel[188]=new Array('JMO','即墨','Jimo','JM');
citysHotel[189]=new Array('JIA','集安','Jian','JA');
citysHotel[190]=new Array('JIN','集宁','Jining','JN');
citysHotel[191]=new Array('TNA','济南','Jinan','JN');
citysHotel[192]=new Array('JNG','济宁','Jining','JN');
citysHotel[193]=new Array('JYA','济源','JIyuan','JY');
citysHotel[194]=new Array('JMU','佳木斯','Jiamusi','JMS');
citysHotel[195]=new Array('JIX','嘉兴','Jiaxing','JX');
citysHotel[196]=new Array('JGN','嘉峪关','Jiayuguan','JYG');
citysHotel[197]=new Array('JID','建德','Jiande','JD');
citysHotel[198]=new Array('JIO','建瓯','Jianou','JO');
citysHotel[199]=new Array('JYG','建阳','Jianyang','JY');
citysHotel[200]=new Array('JDU','江都','Jiangdou','JD');
citysHotel[201]=new Array('JIM','江门','Jiangmen','JM');
citysHotel[202]=new Array('JSA','江山','Jiangshan','JS');
citysHotel[203]=new Array('JIY','江阴','Jiangyin','JY');
citysHotel[204]=new Array('JYO','江油','Jiangyou','JY');
citysHotel[205]=new Array('JAN','姜堰','Jiangyan','JY');
citysHotel[206]=new Array('JNA','胶南','Jiaonan','JN');
citysHotel[207]=new Array('JIZ','胶州','Jiaozhou','JZ');
citysHotel[208]=new Array('JZU','焦作','Jiaozuo','JZ');
citysHotel[209]=new Array('JHE','蛟河','Jiaohe','JH');
citysHotel[210]=new Array('JYN','揭阳','Jieyang','JY');
citysHotel[211]=new Array('JIS','界首','Jieshou','JS');
citysHotel[212]=new Array('JCH','金昌','Jinchang','JC');
citysHotel[213]=new Array('JHA','金华','Jinhua','JH');
citysHotel[214]=new Array('JIT','金坛','Jintan','JT');
citysHotel[215]=new Array('JNZ','锦州','Jinzhou','JZ');
citysHotel[216]=new Array('JIC','晋城','Jincheng','JC');
citysHotel[217]=new Array('JJA','晋江','Jinjiang','JJ');
citysHotel[218]=new Array('JZO','晋中','Jinzhong','JZ');
citysHotel[219]=new Array('JMN','荆门','Jingmen','JM');
citysHotel[220]=new Array('JZG','荆州','Jingzhou','JZ');
citysHotel[221]=new Array('JGS','井冈山','Jinggangshan','JGS');
citysHotel[222]=new Array('JDZ','景德镇','Jingdezheng','JDZ');
citysHotel[223]=new Array('JIH','景洪','Jinghong','JH');
citysHotel[224]=new Array('JIJ','靖江','Jingjiang','JJ');
citysHotel[225]=new Array('JIU','九江','Jiujiang','JJ');
citysHotel[226]=new Array('JZH','九寨沟','Jiuzhaigou','JZG');
citysHotel[227]=new Array('CHW','酒泉','Jiuquan','JQ');
citysHotel[228]=new Array('JUR','句容','Jurong','JR');
citysHotel[229]=new Array('KHG','喀什','Kashi','KS');
citysHotel[230]=new Array('KAF','开封','Kaifeng','KF');
citysHotel[231]=new Array('KAP','开平','Kaiping','KP');
citysHotel[232]=new Array('KYA','开原','Kaiyuan','KY');
citysHotel[233]=new Array('KAY','开远','Kaiyuan','KY');
citysHotel[234]=new Array('KAL','凯里','Kaili','KL');
citysHotel[235]=new Array('KLY','克拉玛依','Kelamayi','KLMY');
citysHotel[236]=new Array('KRL','库尔勒','Kuerle','KRL');
citysHotel[237]=new Array('KUT','奎屯','Kuitun','KT');
citysHotel[238]=new Array('KMG','昆明','Kunming','KM');
citysHotel[239]=new Array('KUS','昆山','Kunshan','KS');
citysHotel[240]=new Array('LXA','拉萨','Lasa','LS');
citysHotel[241]=new Array('LAN','六安','liuan','LA');
citysHotel[242]=new Array('LAW','莱芜','Laiwu','LW');
citysHotel[243]=new Array('LAY','莱阳','Laiyang','LY');
citysHotel[244]=new Array('LZU','莱州','Laizhou','LZ');
citysHotel[245]=new Array('LAX','兰溪','Lanxi','LX');
citysHotel[246]=new Array('LHW','兰州','Lanzhou','LZ');
citysHotel[247]=new Array('LAF','廊坊','Langfang','LF');
citysHotel[248]=new Array('LAZ','阆中','Langzhong','LZ');
citysHotel[249]=new Array('LAH','老河口','Laohekou','LHK');
citysHotel[250]=new Array('LEC','乐昌','Lechang','LC');
citysHotel[251]=new Array('LEQ','乐清','Leqing','LQ');
citysHotel[252]=new Array('LSA','乐山','Leshan','LS');
citysHotel[253]=new Array('LEZ','雷州','Leizhou','LZ');
citysHotel[254]=new Array('LES','冷水江','Lengshuijiang','LSJ');
citysHotel[255]=new Array('LSH','离石','Lishi','LS');
citysHotel[256]=new Array('LJG','丽江','Lijiang','LJ');
citysHotel[257]=new Array('LIJ','丽江地区','Lijiangdiqu','LJDQ');
citysHotel[258]=new Array('LIS','丽水','Lishui','LS');
citysHotel[259]=new Array('LYN','溧阳','Liyang','LY');
citysHotel[260]=new Array('LYG','连云港','Lianyungang','LYG');
citysHotel[261]=new Array('LHO','连州','Lianzhou','LZ');
citysHotel[262]=new Array('LYU','涟源','Lianyuan','LY');
citysHotel[263]=new Array('LIY','辽阳','Liaoyang','LY');
citysHotel[264]=new Array('LIU','辽源','Liaoyuan','LY');
citysHotel[265]=new Array('LCN','聊城','Liaocheng','LC');
citysHotel[266]=new Array('LZI','林芝','Linzhi','LZ');
citysHotel[267]=new Array('LIZ','林芝地区','Linzhidiqu','LZDQ');
citysHotel[268]=new Array('LZN','林州','Linzhou','LZ');
citysHotel[269]=new Array('LIA','临安','Linan','LA');
citysHotel[270]=new Array('LCH','临沧','Lincang','LC');
citysHotel[271]=new Array('LIC','临沧地区','Lingcangdiqu','LCDQ');
citysHotel[272]=new Array('LIF','临汾','Linfen','LF');
citysHotel[273]=new Array('LHA','临海','Linhai','LH');
citysHotel[274]=new Array('LJN','临江','Linjiang','LJ');
citysHotel[275]=new Array('LIX','临夏','Linxia','LX');
citysHotel[276]=new Array('LYI','临沂','Linyi','LY');
citysHotel[277]=new Array('LIB','灵宝','Lingbao','LB');
citysHotel[278]=new Array('LIH','凌海','Linghai','LH');
citysHotel[279]=new Array('LZH','柳州','Liuzhou','LZ');
citysHotel[280]=new Array('LAN','六安','Liuan','LA');
citysHotel[281]=new Array('LIP','六盘水','Liupanshui','LPS');
citysHotel[282]=new Array('LOJ','龙井','Longjing','LJ');
citysHotel[283]=new Array('LOK','龙口','Longkou','LK');
citysHotel[284]=new Array('LOQ','龙泉','Longquan','LQ');
citysHotel[285]=new Array('LOY','龙岩','Longyan','LY');
citysHotel[286]=new Array('LOD','娄底','Loudi','LD');
citysHotel[287]=new Array('LUZ','庐山','Lushan','LS');
citysHotel[288]=new Array('LZO','泸州','Luzhou','LZ');
citysHotel[289]=new Array('LUF','陆丰','Lufeng','LF');
citysHotel[290]=new Array('LUX','潞西','Luxi','LX');
citysHotel[291]=new Array('LUD','罗定','Luoding','LD');
citysHotel[292]=new Array('LYA','洛阳','Luoyang','LY');
citysHotel[293]=new Array('LUH','漯河','Luohe','LH');
citysHotel[294]=new Array('MAC','麻城','Macheng','MC');
citysHotel[295]=new Array('MAA','马鞍山','Maanshan','MAS');
citysHotel[296]=new Array('MAZ','满洲里','Manzhouli','MZL');
citysHotel[297]=new Array('MAM','茂名','Maoming','MM');
citysHotel[298]=new Array('MES','眉山','Meishan','MS');
citysHotel[299]=new Array('MEH','梅河口','Meihekou','MHK');
citysHotel[300]=new Array('MZU','梅州','Meizhou','MZ');
citysHotel[301]=new Array('MEZ','孟州','Mengzhou','MZ');
citysHotel[302]=new Array('MIQ','米泉','Miquan','MQ');
citysHotel[303]=new Array('MIS','密山','Mishan','MS');
citysHotel[304]=new Array('MIG','绵阳','Mianyang','MY');
citysHotel[305]=new Array('MIZ','绵竹','Mianzhu','MZ');
citysHotel[306]=new Array('MDG','牡丹江','Mudanjiang','MDJ');
citysHotel[307]=new Array('NEJ','内江','Neijiang','NJ');
citysHotel[308]=new Array('NAU','那曲','Naqu','NQ');
citysHotel[309]=new Array('NAQ','那曲地区','Naqudiqu','NQDQ');
citysHotel[310]=new Array('NAA','南安','Nanan','NA');
citysHotel[311]=new Array('KHN','南昌','Nanchang','NC');
citysHotel[312]=new Array('NAO','南充','Nanchong','NC');
citysHotel[313]=new Array('NAH','南海','Nanhai','NH');
citysHotel[314]=new Array('NKG','南京','Nanjing','NJ');
citysHotel[315]=new Array('NNG','南宁','Nanning','NN');
citysHotel[316]=new Array('NAP','南平','Nanping','NP');
citysHotel[317]=new Array('NTG','南通','Nantong','NT');
citysHotel[318]=new Array('NAX','南雄','Nanxiong','NX');
citysHotel[319]=new Array('NNY','南阳','Nanyang','NY');
citysHotel[320]=new Array('NIA','宁安','Ningan','NA');
citysHotel[321]=new Array('NGB','宁波','Ningbo','NB');
citysHotel[322]=new Array('NID','宁德','Ningde','ND');
citysHotel[323]=new Array('NIG','宁国','Ningguo','NG');
citysHotel[324]=new Array('PZI','攀枝花','Panzhihua','PZH');
citysHotel[325]=new Array('PAJ','盘锦','Panmian','PM');
citysHotel[326]=new Array('PEZ','彭州','Pengzhou','PZ');
citysHotel[327]=new Array('PEL','蓬莱','Penglai','PL');
citysHotel[328]=new Array('PIZ','邳州','Pizhou','PZ');
citysHotel[329]=new Array('PDS','平顶山','Pingdingshan','PDS');
citysHotel[330]=new Array('PID','平度','Pingdu','PD');
citysHotel[331]=new Array('PIH','平湖','Pinghu','PH');
citysHotel[332]=new Array('PIL','平凉','Pingliang','PL');
citysHotel[333]=new Array('PXA','凭祥','Pingxiang','PX');
citysHotel[334]=new Array('PIX','萍乡','Pingxiang','PX');
citysHotel[335]=new Array('PUT','莆田','Putian','PT');
citysHotel[336]=new Array('PUY','濮阳','Puyang','PY');
citysHotel[337]=new Array('PUN','普宁','Puning','PN');
citysHotel[338]=new Array('QIT','七台河','Qitaihe','QTH');
citysHotel[339]=new Array('NDG','齐齐哈尔','Qiqihaer','QQHE');
citysHotel[340]=new Array('QID','启东','Qidong','QD');
citysHotel[341]=new Array('QIH','千岛湖','Qiandaohu','QDH');
citysHotel[342]=new Array('QIJ','潜江','Qianjiang','QJ');
citysHotel[343]=new Array('QZO','钦州','Qinzhou','QZ');
citysHotel[344]=new Array('SHP','秦皇岛','Qinghuangdao','QHD');
citysHotel[345]=new Array('QYA','沁阳','Qinyang','QY');
citysHotel[346]=new Array('TAO','青岛','Qingdao','QD');
citysHotel[347]=new Array('QIZ','青州','Qingzhou','QZ');
citysHotel[348]=new Array('QYN','清远','Qingyuan','QY');
citysHotel[349]=new Array('IQN','庆阳','Qingyang','QY');
citysHotel[350]=new Array('QIY','庆阳地区','Qingyangdiqu','QYDQ');
citysHotel[351]=new Array('QIL','邛崃','Qionglai','QL');
citysHotel[352]=new Array('QHA','琼海','Qionghai','QH');
citysHotel[353]=new Array('QUF','曲阜','Qufu','QF');
citysHotel[354]=new Array('QUJ','曲靖','Qujing','QJ');
citysHotel[355]=new Array('JUZ','衢州','Quzhou','QZ');
citysHotel[356]=new Array('QUZ','泉州','Quanzhou','QZ');
citysHotel[357]=new Array('REH','仁怀','Renhuai','RH');
citysHotel[358]=new Array('REQ','任丘','Renqiu','RQ');
citysHotel[359]=new Array('RIK','日喀则','Rikaze','RKZ');
citysHotel[360]=new Array('RIZ','日照','RIzhao','RZ');
citysHotel[361]=new Array('ROC','荣城','Rongcheng','RC');
citysHotel[362]=new Array('RUG','如皋','Rugao','RG');
citysHotel[363]=new Array('RUZ','汝州','Ruzhou','RZ');
citysHotel[364]=new Array('RUS','乳山','Rushan','RS');
citysHotel[365]=new Array('RUA','瑞安','Ruian','RA');
citysHotel[366]=new Array('RUL','瑞丽','Ruili','RL');
citysHotel[367]=new Array('SAM','三门峡','Sanmenxia','SMX');
citysHotel[368]=new Array('SMI','三明','Sanming','SM');
citysHotel[369]=new Array('SAS','三水','Sanshui','SS');
citysHotel[370]=new Array('SYX','三亚','Sanya','SY');
citysHotel[371]=new Array('SHG','山南','Shannan','SN');
citysHotel[372]=new Array('SHN','山南地区','Shannandiqu','SNDQ');
citysHotel[373]=new Array('SWA','汕头','Shantou','ST');
citysHotel[374]=new Array('SHW','汕尾','Shanwei','SW');
citysHotel[375]=new Array('SHL','商洛','Shangluo','SL');
citysHotel[376]=new Array('SHQ','商丘','Shangqiu','SQ');
citysHotel[377]=new Array('SHA','上海','Shanghai','SH');
citysHotel[378]=new Array('SHR','上饶','Shangrao','SR');
citysHotel[379]=new Array('SYU','上虞','Shangyu','SY');
citysHotel[380]=new Array('SZI','尚志','Shangzhi','SZ');
citysHotel[381]=new Array('HSC','韶关','Shaoguan','SG');
citysHotel[382]=new Array('SHS','韶山','Shaoshan','SS');
citysHotel[383]=new Array('SWU','邵武','Shaowu','SW');
citysHotel[384]=new Array('SYG','邵阳','Shaoyang','SY');
citysHotel[385]=new Array('SHX','绍兴','Shaoxing','SX');
citysHotel[386]=new Array('SZX','深圳','Shenzhen','SZ');
citysHotel[387]=new Array('SNJ','神农架林区','Shennongjiadiqu','SNJDQ');
citysHotel[388]=new Array('SHE','沈阳','Shenyang','SY');
citysHotel[389]=new Array('SZU','嵊州','Shengzhou','SZ');
citysHotel[390]=new Array('SYA','十堰','Shiyan','SY');
citysHotel[391]=new Array('SHH','石河子','Shihezi','SHZ');
citysHotel[392]=new Array('SJW','石家庄','Shijiazhuang','SJZ');
citysHotel[393]=new Array('SHI','石狮','Shishi','SS');
citysHotel[394]=new Array('SSH','石首','Shishou','SS');
citysHotel[395]=new Array('SLA','舒兰','Shulan','SL');
citysHotel[396]=new Array('SHY','双鸭山','Shuangyashan','SYS');
citysHotel[397]=new Array('SHD','顺德','Shunde','SD');
citysHotel[398]=new Array('SHZ','朔州','Shuozhou','SZ');
citysHotel[399]=new Array('SYM','思茅','Simao','SM');
citysHotel[400]=new Array('SIH','四会','Sihui','SH');
citysHotel[401]=new Array('SIP','四平','Siping','SP');
citysHotel[402]=new Array('SOY','松原','Songyuan','SY');
citysHotel[403]=new Array('SOH','松滋','Songzi','SZ');
citysHotel[404]=new Array('SOZ','松滋宾馆','Songzibinguan','SZBG');
citysHotel[405]=new Array('SZV','苏州','Suzhou','SZ');
citysHotel[406]=new Array('XIQ','宿迁','Suqian','SQ');
citysHotel[407]=new Array('XIO','宿州','Suzhou','SZ');
citysHotel[408]=new Array('SUF','绥芬河','Suifenhe','SFH');
citysHotel[409]=new Array('SUH','绥化','Suihua','SH');
citysHotel[410]=new Array('SUZ','随州','Suizhou','SZ');
citysHotel[411]=new Array('SUN','遂宁','Suining','SN');
citysHotel[412]=new Array('TCG','塔城','Tacheng','TC');
citysHotel[413]=new Array('TSA','台山','Taishan','TS');
citysHotel[414]=new Array('TAZ','台州','Taizhou','TZ');
citysHotel[415]=new Array('TAC','太仓','Taicang','TC');
citysHotel[416]=new Array('TYN','太原','Taiyuan','TY');
citysHotel[417]=new Array('TAA','泰安','Taian','TA');
citysHotel[418]=new Array('TAX','泰兴','Taixing','TX');
citysHotel[419]=new Array('TZU','泰州','Taizhou','TZ');
citysHotel[420]=new Array('TAS','唐山','Tangshan','TS');
citysHotel[421]=new Array('TIC','天长','Tianchang','TC');
citysHotel[422]=new Array('TSN','天津','Tianjin','TJ');
citysHotel[423]=new Array('TIM','天门','Tianmen','TM');
citysHotel[424]=new Array('TIS','天水','Tianshui','TS');
citysHotel[425]=new Array('TLI','铁力','Tieli','TL');
citysHotel[426]=new Array('TIL','铁岭','Tieling','TL');
citysHotel[427]=new Array('TNH','通化','Tonghua','TH');
citysHotel[428]=new Array('TGO','通辽','Tongliao','TL');
citysHotel[429]=new Array('TOS','通什','Tongshi','TS');
citysHotel[430]=new Array('TOZ','通洲','Tongzhou','TZ');
citysHotel[431]=new Array('TOL','同里','Tongli','TL');
citysHotel[432]=new Array('TOX','桐乡','Tongxiang','TX');
citysHotel[433]=new Array('TOC','铜川','Tongchuan','TC');
citysHotel[434]=new Array('TOG','铜陵','Tongling','TL');
citysHotel[435]=new Array('TOR','铜仁','Tongren','TR');
citysHotel[436]=new Array('TUL','吐鲁番','Tulufan','TLF');
citysHotel[437]=new Array('WAN','万宁','Wanning','WN');
citysHotel[438]=new Array('WEH','威海','Weihai','WH');
citysHotel[439]=new Array('WEF','潍坊','Weifang','WF');
citysHotel[440]=new Array('WEN','渭南','Weinan','WN');
citysHotel[441]=new Array('WEG','温岭','Wenling','WL');
citysHotel[442]=new Array('WEL','温蛉','Wenling','WL');
citysHotel[443]=new Array('WNZ','温州','Wenzhou','WZ');
citysHotel[444]=new Array('WEC','文昌','Wenchang','WC');
citysHotel[445]=new Array('WED','文登','Wendeng','WD');
citysHotel[446]=new Array('WES','文山州','Wenshanzhou','WSZ');
citysHotel[447]=new Array('WHA','乌海','Wuhai','WH');
citysHotel[448]=new Array('HLH','乌兰浩特','Wulanhaote','WLHT');
citysHotel[449]=new Array('URC','乌鲁木齐','Wulumuqi','WLMQ');
citysHotel[450]=new Array('WUX','无锡','Wuxi','WX');
citysHotel[451]=new Array('WJI','吴江','Wujiang','WJ');
citysHotel[452]=new Array('WHU','芜湖','Wuhu','WH');
citysHotel[453]=new Array('WUZ','梧州','Wuzhou','WZ');
citysHotel[454]=new Array('XZS','五指山','Wuzhishan','WZS');
citysHotel[455]=new Array('WUH','武汉','Wuhan','WH');
citysHotel[456]=new Array('WUJ','武进','Wujin','WJ');
citysHotel[457]=new Array('WUW','武威','Wuwei','WW');
citysHotel[458]=new Array('WXI','武穴','Wuxue','WX');
citysHotel[459]=new Array('WUS','武夷山','Wuyishan','WYS');
citysHotel[460]=new Array('SIA','西安','Xian','XA');
citysHotel[461]=new Array('XIC','西昌','Xichang','XC');
citysHotel[462]=new Array('XNN','西宁','Xining','XN');
citysHotel[463]=new Array('JHG','西双版纳','Xishuangbanna','XSBN');
citysHotel[464]=new Array('XIL','锡林浩特','Xilinhaote','XLHT');
citysHotel[465]=new Array('XMN','厦门','Xiamen','XM');
citysHotel[466]=new Array('XIA','仙桃','Xiantao','XT');
citysHotel[467]=new Array('XAN','咸宁','Xianning','XN');
citysHotel[468]=new Array('XIY','咸阳','Xianyang','XY');
citysHotel[469]=new Array('HKG','香港','Xianggang','XG');
citysHotel[470]=new Array('XIG','香格里拉','Xianggelila','XGLL');
citysHotel[471]=new Array('XIT','湘潭','Xiangtan','XT');
citysHotel[472]=new Array('XFN','襄阳','Xiangfan','XF');
citysHotel[473]=new Array('XCH','项城','Xiangcheng','XC');
citysHotel[474]=new Array('XGN','孝感','Xiaogan','XG');
citysHotel[475]=new Array('XIU','忻州','Xinzhou','XZ');
citysHotel[476]=new Array('XIH','新会','Xinhui','XH');
citysHotel[477]=new Array('XIM','新密','Xinmi','XM');
citysHotel[478]=new Array('XIX','新乡','Xinxiang','XX');
citysHotel[479]=new Array('XIN','新沂','Xinyi','XY');
citysHotel[480]=new Array('XYU','新余','Xinyu','XY');
citysHotel[481]=new Array('XYA','信阳','Xinyang','XY');
citysHotel[482]=new Array('XYI','信宜','Xinyi','XY');
citysHotel[483]=new Array('XEN','兴城','Xingcheng','XC');
citysHotel[484]=new Array('XYN','兴义','Xingyi','XY');
citysHotel[485]=new Array('XNT','邢台','Xingtai','XT');
citysHotel[486]=new Array('XUZ','徐州','Xuzhou','XZ');
citysHotel[487]=new Array('XCA','许昌','Xuchang','XC');
citysHotel[488]=new Array('XUC','宣城','Xuancheng','XC');
citysHotel[489]=new Array('YAA','雅安','Yaan','YA');
citysHotel[490]=new Array('YNT','烟台','Yantai','YT');
citysHotel[491]=new Array('ENY','延安','Yanan','YA');
citysHotel[492]=new Array('YNJ','延吉','Yanji','YJ');
citysHotel[493]=new Array('YNZ','盐城','Yancheng','YC');
citysHotel[494]=new Array('YZH','兖州','Yanzhou','YZ');
citysHotel[495]=new Array('YAS','偃师','Yanshi','YS');
citysHotel[496]=new Array('YAD','雁荡山','Yandangshan','YDS');
citysHotel[497]=new Array('YAZ','扬中','Yangzhong','YZ');
citysHotel[498]=new Array('YZO','扬州','Yangzhou','YZ');
citysHotel[499]=new Array('YAC','阳春','Yangchun','YC');
citysHotel[500]=new Array('YAJ','阳江','Yangjiang','YJ');
citysHotel[501]=new Array('YAQ','阳泉','Yangquan','YQ');
citysHotel[502]=new Array('YAH','阳朔','Yangsuo','YS');
citysHotel[503]=new Array('YCH','伊春','Yichun','YC');
citysHotel[504]=new Array('YIN','伊宁','Yining','YN');
citysHotel[505]=new Array('YIZ','仪征','Yizheng','YZ');
citysHotel[506]=new Array('YBP','宜宾','Yibin','YB');
citysHotel[507]=new Array('YIH','宜昌','Yicang','YC');
citysHotel[508]=new Array('YIC','宜春','Yichun','YC');
citysHotel[509]=new Array('YIX','宜兴','Yixing','YX');
citysHotel[510]=new Array('YZU','宜州','Yizhou','YZ');
citysHotel[511]=new Array('YIW','义乌','Yiwu','YW');
citysHotel[512]=new Array('YIY','益阳','Yiyang','YY');
citysHotel[513]=new Array('INC','银川','Yinchuan','YC');
citysHotel[514]=new Array('YIT','鹰潭','Yingtan','YT');
citysHotel[515]=new Array('XYG','荥阳','Xingyang','XY');
citysHotel[516]=new Array('YIK','营口','Yingkou','YK');
citysHotel[517]=new Array('YOA','永安','Yongan','YA');
citysHotel[518]=new Array('YOK','永康','Yongkang','YK');
citysHotel[519]=new Array('YOZ','永州','Yongzhou','YZ');
citysHotel[520]=new Array('YUA','余姚','Yuyao','YY');
citysHotel[521]=new Array('UYN','榆林','Yulin','YL');
citysHotel[522]=new Array('YUZ','禹州','Yuzhou','YZ');
citysHotel[523]=new Array('YUL','玉林','Yulin','YL');
citysHotel[524]=new Array('YUM','玉门','Yumen','YM');
citysHotel[525]=new Array('YUS','玉树州','Yushuzhou','YSZ');
citysHotel[526]=new Array('YUX','玉溪','Yuxi','YX');
citysHotel[527]=new Array('YUY','岳阳','Yueyang','YY');
citysHotel[528]=new Array('YNF','云浮','Yunfu','YF');
citysHotel[529]=new Array('YUC','运城','Yuncheng','YC');
citysHotel[530]=new Array('ZAY','枣阳','Zaoyang','ZY');
citysHotel[531]=new Array('ZAZ','枣庄','Zaozhuang','ZZ');
citysHotel[532]=new Array('ZHL','扎兰屯','Zhalantun','ZLT');
citysHotel[533]=new Array('ZHA','湛江','Zhanjiang','ZJ');
citysHotel[534]=new Array('ZHJ','张家港','Zhangjiagang','ZJG');
citysHotel[535]=new Array('DYG','张家界','Zhangjiajie','ZJJ');
citysHotel[536]=new Array('ZJK','张家口','Zhangjiakou','ZJK');
citysHotel[537]=new Array('ZHY','张掖','Zhangye','ZY');
citysHotel[538]=new Array('ZHP','漳平','Zhangping','ZP');
citysHotel[539]=new Array('ZHZ','漳州','Zhangzhou','ZZ');
citysHotel[540]=new Array('ZAT','昭通','Zhaotong','ZT');
citysHotel[541]=new Array('ZHQ','肇庆','Zhaoqing','ZQ');
citysHotel[542]=new Array('ZJA','镇江','Zhenjiang','ZJ');
citysHotel[543]=new Array('CGO','郑州','Zhengzhou','ZZ');
citysHotel[544]=new Array('ZIS','中山','Zhongshan','ZS');
citysHotel[545]=new Array('ZHX','钟祥','Zhongxiang','ZX');
citysHotel[546]=new Array('CKG','重庆','Chongqing','CQ');
citysHotel[547]=new Array('HSN','舟山','Zhoushan','ZS');
citysHotel[548]=new Array('ZHK','周口','Zhoukou','ZK');
citysHotel[549]=new Array('ZHN','周庄','Zhouzhuang','ZZ');
citysHotel[550]=new Array('ZHO','株州','Zhuzhou','ZZ');
citysHotel[551]=new Array('ZHC','株洲','Zhuzhou','ZZ');
citysHotel[552]=new Array('ZUH','珠海','Zhuhai','ZH');
citysHotel[553]=new Array('ZJI','诸暨','Zhuji','ZJ');
citysHotel[554]=new Array('ZHM','驻马店','Zhumadian','ZMD');
citysHotel[555]=new Array('ZHU','涿州','Zhuozhou','ZZ');
citysHotel[556]=new Array('ZIX','资兴','Zhixing','ZX');
citysHotel[557]=new Array('ZIY','资阳','Zhiyang','ZY');
citysHotel[558]=new Array('ZIB','淄博','Zibo','ZB');
citysHotel[559]=new Array('ZIG','自贡','Zigong','ZG');
citysHotel[560]=new Array('ZOC','邹城','Zhoucheng','ZC');
citysHotel[561]=new Array('ZHH','遵化','Zhunhua','ZH');
citysHotel[562]=new Array('ZYI','遵义','Zunyi','ZY');
citysHotel[563]=new Array('JXA','鸡西','Jixi','JX');


var commoncitysFlight = new Array();
commoncitysFlight[0]=new Array('SZX','深圳','Shenzhen','SZ');
commoncitysFlight[1]=new Array('PEK','北京','Beijing','BJ');
commoncitysFlight[2]=new Array('SHA','上海','Shanghai','SH');
commoncitysFlight[3]=new Array('CAN','广州','Guangzhou','GZ');
commoncitysFlight[4]=new Array('HGH','杭州','Hangzhou','HZ');
commoncitysFlight[5]=new Array('CKG','重庆','Chongqing','CQ');
commoncitysFlight[6]=new Array('XIY','西安','Xian','XA');
commoncitysFlight[7]=new Array('WUH','武汉','Wuhan','WH');
commoncitysFlight[8]=new Array('NKG','南京','Nanjing','NJ');
commoncitysFlight[9]=new Array('SYX','三亚','Sanya','SY');

//初始化各个城市
var citysFlight=new Array();
// A
citysFlight[0]=new Array('AKU','阿克苏','Akesu','AKS');
citysFlight[1]=new Array('AAT','阿勒泰','Aletai','ALT');
citysFlight[2]=new Array('AQG','安庆','Anqing','AQ');
citysFlight[3]=new Array('AKA','安康','Ankang','AK');
citysFlight[4]=new Array('IOB','鞍山','Anshan','AS');
citysFlight[5]=new Array('BAV','包头','Baotou','BT');
citysFlight[6]=new Array('BSD','保山','Baoshan','BS');
citysFlight[7]=new Array('BHY','北海','Beihai','BH');
citysFlight[8]=new Array('PEK','北京','Beijing','BJ');
citysFlight[9]=new Array('CGQ','长春','Changchun','CC');
citysFlight[10]=new Array('CSX','长沙','Changsha','CS');
citysFlight[11]=new Array('CIH','长治','Changzhi','CZ');
citysFlight[12]=new Array('CGD','常德','Changde','CD');
citysFlight[13]=new Array('CZX','常州','Changzhou','CZ');
citysFlight[14]=new Array('CTU','成都','Chengdu','CD');
citysFlight[15]=new Array('CKG','重庆','Chongqing','CQ');
citysFlight[16]=new Array('BPX','昌都','Changdu','CD');
citysFlight[17]=new Array('DLU','大理','Dali','DDL');
citysFlight[18]=new Array('DLC','大连','Dalian','DL');
citysFlight[19]=new Array('DTG','大同','Datong','DT');
citysFlight[20]=new Array('DQA','大庆','Daqing','DQ');
citysFlight[21]=new Array('DDG','丹东','Dandong','DD');
citysFlight[22]=new Array('DNH','敦煌','Dunhuang','DH');
citysFlight[23]=new Array('ENH','恩施','Enshi','ES');
citysFlight[24]=new Array('FOC','福州','Fuzhou','FZ');
citysFlight[25]=new Array('KOW','赣州','Ganzhou','GZ');
citysFlight[26]=new Array('CAN','广州','Guangzhou','GZ');
citysFlight[27]=new Array('KWE','贵阳','Guiyang','GY');
citysFlight[28]=new Array('KWL','桂林','Guilin','GL');
citysFlight[29]=new Array('HRB','哈尔滨','Haerbin','HEB');
citysFlight[30]=new Array('HAK','海口','Haikou','HK');
citysFlight[31]=new Array('HLD','海拉尔','Hailaer','HLE');
citysFlight[32]=new Array('HGH','杭州','Hangzhou','HZ');
citysFlight[33]=new Array('HFE','合肥','Hefei','HF');
citysFlight[34]=new Array('HTN','和田','Hetian','HT');
citysFlight[35]=new Array('HET','呼和浩特','Huhehaote','HHHT');
citysFlight[36]=new Array('HJJ','怀化','Huaihua','HH');
citysFlight[37]=new Array('AVA','黄果树','Huangguoshu','HGS');
citysFlight[38]=new Array('TXN','黄山','Huangshan','HS');
citysFlight[39]=new Array('TNA','济南','Jinan','JN');
citysFlight[40]=new Array('JMU','佳木斯','Jiamusi','JMS');
citysFlight[41]=new Array('JDZ','景德镇','Jindezhen','JDZ');
citysFlight[42]=new Array('KJI','喀纳斯','Kanasi','KNS');
citysFlight[43]=new Array('KHG','喀什','Kashi','KS');
citysFlight[44]=new Array('KRY','克拉玛依','Kelamayi','KLMY');
citysFlight[45]=new Array('KCA','库车','Kuche','KC');
citysFlight[46]=new Array('KRL','库尔勒','Kuerle','KEL');
citysFlight[47]=new Array('KMG','昆明','Kunming','KM');
citysFlight[48]=new Array('LXA','拉萨','Lasha','LS');
citysFlight[49]=new Array('LHW','兰州','Lanzhou','LZ');
citysFlight[50]=new Array('LJG','丽江','Lijiang','LJ');
citysFlight[51]=new Array('LYG','连云港','Lianyungang','LYG');
citysFlight[52]=new Array('LYA','洛阳','Luoyang','LY');
citysFlight[53]=new Array('MXZ','梅县','Meixian','MX');
citysFlight[54]=new Array('MDG','牡丹江','Mudanjiang','MDJ');
citysFlight[55]=new Array('NAO','南充','Nanchong','NC');
citysFlight[56]=new Array('NLT','那里提','Naliti','NLT');
citysFlight[57]=new Array('KHN','南昌','Nanchang','NC');
citysFlight[58]=new Array('NKG','南京','Nanjing','NJ');
citysFlight[59]=new Array('NNG','南宁','Nanning','NN');
citysFlight[60]=new Array('NTG','南通','Nantong','NT');
citysFlight[61]=new Array('NNY','南阳','Nanyang','NY');
citysFlight[62]=new Array('NGB','宁波','Ningbo','NB');
citysFlight[63]=new Array('NDG','齐齐哈尔','Qiqihaer','QQHE');
citysFlight[64]=new Array('IQM','且末','Qiemo','QM');
citysFlight[65]=new Array('TAO','青岛','Qingdao','QD');
citysFlight[66]=new Array('IQN','庆阳','Qingyang','QY');
citysFlight[67]=new Array('JJN','晋江','Jinjiang','JJ');
citysFlight[68]=new Array('SYX','三亚','Sanya','SY');
citysFlight[69]=new Array('SWA','揭阳','Jieyang','JY');
citysFlight[70]=new Array('SHA','上海','Shanghai','SH');
citysFlight[71]=new Array('SZX','深圳','Shenzhen','SZ');
citysFlight[72]=new Array('SHE','沈阳','Shenyang','SY');
citysFlight[73]=new Array('SJW','石家庄','Shijiazhuang','SJZ');
citysFlight[74]=new Array('TCG','塔城','Tacheng','TC');
citysFlight[75]=new Array('TYN','太原','Taiyuan','TY');
citysFlight[76]=new Array('TSN','天津','Tianjin','TJ');
citysFlight[77]=new Array('TEN','铜仁','Tongren','TR');
citysFlight[78]=new Array('WEH','威海','Weihai','WH');
citysFlight[79]=new Array('WNZ','温州','Wenzhou','WZ');
citysFlight[80]=new Array('WNH','文山','Wenshan','WS');
citysFlight[81]=new Array('URC','乌鲁木齐','Wulumuqi','WLMQ');
citysFlight[82]=new Array('WUX','无锡','Wuxi','WX');
citysFlight[83]=new Array('WUH','武汉','Wuhan','WH');
citysFlight[84]=new Array('XIY','西安','Xian','XA');
citysFlight[85]=new Array('XNN','西宁','Xining','XN');
citysFlight[86]=new Array('JHG','西双版纳','Xishuangbanna','XSBN');
citysFlight[87]=new Array('XMN','厦门','Xiamen','XM');
citysFlight[88]=new Array('DIG','迪庆','Diqing','DQ');
citysFlight[89]=new Array('XFN','襄阳','Xiangfan','XF');
citysFlight[90]=new Array('XUZ','徐州','Xuzhou','XZ');
citysFlight[91]=new Array('YNT','烟台','Yantai','YT');
citysFlight[92]=new Array('YNJ','延吉','Yanji','YJ');
citysFlight[93]=new Array('YNZ','盐城','Yancheng','YC');
citysFlight[94]=new Array('YIN','伊宁','Yining','YN');
citysFlight[95]=new Array('YIW','义乌','Yiwu','YW');
citysFlight[96]=new Array('YIH','宜昌','Yichang','YC');
citysFlight[97]=new Array('INC','银川','Yinchuan','YC');
citysFlight[98]=new Array('ZHA','湛江','Zhanjiang','ZJ');
citysFlight[99]=new Array('DYG','张家界','Zhangjiajie','ZJJ');
citysFlight[100]=new Array('CGO','郑州','Zhengzhou','ZZ');
citysFlight[101]=new Array('ZUH','珠海','Zhuhai','ZH');
citysFlight[102]=new Array('JUZ','衢州','Quzhou','QZ');
citysFlight[103]=new Array('CHG','朝阳','Zhaoyang','ZY');
citysFlight[104]=new Array('CIF','赤峰','Chifeng','CF');
citysFlight[105]=new Array('DAX','达县','Daxian','DX');
citysFlight[106]=new Array('LUM','芒市','Mangshi','MS');
citysFlight[107]=new Array('DOY','东营','Dongying','DY');
citysFlight[108]=new Array('DSN','鄂尔多斯','Eerduosi','EEDS');
citysFlight[109]=new Array('FUG','阜阳','Fuyang','FY');
citysFlight[110]=new Array('GOQ','格尔木','Geermu','GEM');
citysFlight[111]=new Array('GYS','广元','Guangyuan','GY');
citysFlight[112]=new Array('GHN','广汉','Guanghan','GH');
citysFlight[113]=new Array('HMI','哈密','Hami','HM');
citysFlight[114]=new Array('HZG','汉中','Hanzhong','HZ');
citysFlight[115]=new Array('HNY','衡阳','Hengyang','HY');
citysFlight[116]=new Array('HYN','黄岩','Huangyan','HY');
citysFlight[117]=new Array('AHE','惠阳','Huiyang','HY');
citysFlight[118]=new Array('HEK','黑河','Heihe','HH');
citysFlight[119]=new Array('JIL','吉林','Jilin','JL');
citysFlight[120]=new Array('KNC','吉安','Jian','JA');
citysFlight[121]=new Array('JNZ','锦州','Jinzhou','JZ');
citysFlight[122]=new Array('SHS','荆州','Jingzhou','JZ');
citysFlight[123]=new Array('JIU','九江','Jiujiang','JJ');
citysFlight[124]=new Array('JZH','九寨沟','Jiuzhaigou','JZG');
citysFlight[125]=new Array('LIA','梁平','Liangping','LP');
citysFlight[126]=new Array('LYI','临沂','Linyi','LY');
citysFlight[127]=new Array('LNJ','临沧','Lincang','LC');
citysFlight[128]=new Array('LZH','柳州','Liuzhou','LZ');
citysFlight[129]=new Array('LZO','泸州','Luzhou','LZ');
citysFlight[130]=new Array('NZH','满州里','Manzhouli','MZL');
citysFlight[131]=new Array('MIG','绵阳','Mianyang','MY');
citysFlight[132]=new Array('NLT','那拉提','Nalati','NLT');
citysFlight[133]=new Array('PZI','攀枝花','Panzhihua','PZH');
citysFlight[134]=new Array('SHP','秦皇岛','Qinhuangdao','QHD');
citysFlight[135]=new Array('JUZ','衢州','Quzhou','QZ');
citysFlight[136]=new Array('SXJ','鄯善','Shanshan','SS');
citysFlight[137]=new Array('SHG','韶关','Shaoguan','SG');
citysFlight[138]=new Array('SYM','思茅','Simao','SM');
citysFlight[139]=new Array('WXN','万州','Wanzhou','WZ');
citysFlight[140]=new Array('WEF','潍坊','Weifang','WF');
citysFlight[141]=new Array('WUS','武夷山','Wuyishan','WYS');
citysFlight[142]=new Array('WUZ','梧州','Wuzhou','WZ');
citysFlight[143]=new Array('XIC','西昌','Xichang','XC');
citysFlight[144]=new Array('ACX','兴义','Xingyi','XY');
citysFlight[145]=new Array('LLF','永州','Yongzhou','YZ');
citysFlight[146]=new Array('ENY','延安','Yanan','YA');
citysFlight[147]=new Array('YBP','宜宾','Yibin','YB');
citysFlight[148]=new Array('UYN','榆林','Yulin','YL');
citysFlight[149]=new Array('ZAT','昭通','Zhaotong','ZT');
citysFlight[150]=new Array('HSN','舟山','Zhoushan','ZS');
citysFlight[151]=new Array('ZYI','遵义','Zunyi','ZY');
citysFlight[152]=new Array('OHE','漠河','Mohe','MH');
citysFlight[153]=new Array('HDG','邯郸','Handan','HD');
citysFlight[154]=new Array('JNG','济宁','JiNing','JN');
citysFlight[155]=new Array('YCU','运城','YunCheng','YC');
citysFlight[156]=new Array('LZY','林芝','Linzhi','LZ');

citysFlight[157]=new Array('XIL','锡林浩特','Xilinhaote','XLHT');

citysFlight[158]=new Array('TVS','唐山','Tangsan','TS');

citysFlight[159]=new Array('THQ','天水','Tianshui','TS');

citysFlight[160]=new Array('WUA','乌海','Wuhai','WH');

citysFlight[161]=new Array('ZHY','中卫','Zhongwei','ZW');

citysFlight[162]=new Array('JXA','鸡西','Jixi','JX');

citysFlight[163]=new Array('TGO','通辽','Tongliao','TL');

citysFlight[164]=new Array('TCZ','腾冲','TengChong','TC');
citysFlight[165]=new Array('HIA','淮安','HuaiAn','HA');

citysFlight[166]=new Array('FUO','佛山','Foshan','FS');

citysFlight[167]=new Array('YIE','阿尔山','Aershan','ARS');
citysFlight[168]=new Array('ERL','二连浩特','Elianhaote','ERLT');
citysFlight[169]=new Array('RLK','巴彦淖尔','Bayannaoer','RLK');
citysFlight[170]=new Array('YTY','扬州','Yangzhou','TZ');
citysFlight[171]=new Array('JGS','井冈山','Yangzhou','JGS');
citysFlight[172]=new Array('JIQ','黔江','Qianjiang','QJ');
citysFlight[173]=new Array('GYU','固原','Guyuan','GY');
citysFlight[174]=new Array('NBS','长白山','Changbaishan','CBS');
citysFlight[175]=new Array('BAS','长白山','Changbaishan','CBS');
citysFlight[176]=new Array('AXF','阿拉善左旗','Alashanzuoqi','ALSZQ');
citysFlight[177]=new Array('RHT','阿拉善右旗','Alashanyouqi','ALSYQ');
citysFlight[178]=new Array('EJN','额济纳旗','Ejinaqi','EJNQ');
citysFlight[179]=new Array('JUH','九华山','Jhuashan','JHS');
citysFlight[180]=new Array('GXH','夏河','Xiahe','XH');
citysFlight[181]=new Array('DCY','稻城','Daocheng','DC');
citysFlight[182]=new Array('KJH','凯里','Kaili','KL');
citysFlight[183]=new Array('HPG','神农架','Shennongjia','SNJ');
citysFlight[184]=new Array('FYJ','抚远','Fuyuan','FY');
citysFlight[185]=new Array('KJI','喀纳斯','Ganasi','GNS');
citysFlight[186]=new Array('HCJ','河池','Hechi','HC');
commoncitys = commoncitysFlight;
citys = citysFlight;

var parentbject;
var city_suggest = function(){
	this.Remoreurl = ''; // 远程URL地址
	this.object = '';
	this.id2 = '';
	this.taskid = 0;
	this.delaySec = 100; // 默认延迟多少毫秒出现提示框
	this.lastkeys_val= 0;
	var lastkeys_val= 0;
	this.lastinputstr = '';	
	/**
	* 初始化类库
	*/
	this.init_zhaobussuggest=  function(){
		var objBody = document.getElementById("mainbody");
		var objiFrame = document.createElement("iframe");
		var objplatform = document.createElement("div");
                 
		objiFrame.setAttribute('id','getiframe');
		objiFrame.style.zindex='100';		
		objiFrame.style.position = 'absolute';
		objiFrame.style.display = 'none';
		objplatform.setAttribute('id','getplatform');
		objplatform.setAttribute('align','left');
		objplatform.style.zindex='10000';
		objBody.appendChild(objiFrame);
		objBody.appendChild(objplatform);
		var win=objBody || window
                
		if(!document.all) {
			objBody.addEventListener("click",this.hidden_suggest,false);
			
		}else{
			win.document.attachEvent("onclick",this.hidden_suggest);
			
		}
	}

	/***************************************************fill_div()*********************************************/
	//函数功能：动态填充div的内容，该div显示所有的提示内容
	//函数参数：allplat 一个字符串数组，包含了所有可能的提示内容
	this.fill_div = function(allplat){
		var msgplat = '';
		var all = '';
		var spell = '';
		var chinese = '';
		var platkeys = this.object.value;
        platkeys=this.ltrim(platkeys);
		if(!platkeys){
			msgplat += '<table class="hint" width="190"><tr align="left"><td class="tdleft" height="10" align="left">输入中文/拼音或&uarr;&darr;选择</td></tr></table><table width="190" class="mout" height="2"><tr><td></td></tr></table>';
			for(i=0;i<allplat.length;i++){
			    all=allplat[i].split(",");
				spell=all[0];
				chinese=all[1];
				szm=all[2];
				msgplat += '<table class="mout" width="190"><tr onclick="parentbject.add_input_text(\'' + chinese + '\',\'' + szm + '\')"><td class="tdleft" height="10" align="left">'+ spell +
				       '</td><td class="tdright" align="right">' + chinese + '</td><td style="display:none">' + szm + '</td></tr></table>';
			}
        }
		else {
			if(allplat.length < 1 || !allplat[0]){
				msgplat += '<table class="hint" width="190"><tr align="left"><td class="tdleft" height="10" align="left">对不起，找不到：<font color="red">'+platkeys+'</font>。';
				msgplat +='<br/>原因1：城市名称输入错误。<br/>原因2：<font color="red">“'+platkeys+'”</font>没有机场。<br/>原因3：没有<font color="red">“'+platkeys+'”</font>的航班。</td></tr></table><table width="190" class="mout" height="2"><tr><td></td></tr></table>';
			}
			else{
			if(display_configObj && display_configObj["showReset"] && display_configObj.showReset){
				msgplat += '<table class="hint" width="190"><tr align="left"><td class="tdleft" height="10" align="left"><div style="float:left;"'+platkeys
				+'，按拼音排序</div><div style="float:right;"><a href="javascript:void(0)" id="display_reset_link">重新选择</a></div></td></tr></table><table width="190" class="mout" height="2"><tr><td></td></tr></table>';
			}else {
				msgplat += '<table class="hint" width="190"><tr align="left"><td class="tdleft" height="10" align="left">'+platkeys+'，按拼音排序</td></tr></table><table width="190" class="mout" height="2"><tr><td></td></tr></table>';	
			}
			 
			   for(i=0;i<allplat.length;i++){
					all=allplat[i].split(",");
					spell=all[0];
					chinese=all[1];
					szm=all[2];
					msgplat += '<table class="mout" width="190"><tr onclick="parentbject.add_input_text(\'' + chinese + '\',\'' + szm + '\')"><td class="tdleft" height="10" align="left">'+ spell +
				       '</td><td class="tdright" align="right">' + chinese + '</td><td style="display:none">' + szm + '</td></tr></table>';
				}
			}
		}
		document.getElementById("getplatform").innerHTML =  msgplat;
		var nodes = document.getElementById("getplatform").childNodes;
		nodes[0].className = "hint";
		if(allplat.length >= 1 && allplat[0]){
			nodes[2].className = "selected";
		}
		//this.lastkeys_val = 0;
		for(var i=2;i<nodes.length;i++){
			nodes[i].onmouseover = function(){
				this.className = "mover";
				}
			nodes[i].onmouseout = function(){
				if(parentbject.lastkeys_val==(parentIndexOf(this)-2)){this.className = "selected";}
				else{this.className = "mout";}
			}
		}
		document.getElementById("getiframe").style.width = document.getElementById("getplatform").clientWidth+2;
        document.getElementById("getiframe").style.height = document.getElementById("getplatform").clientHeight+2;		
		if(display_configObj && display_configObj["showReset"] && display_configObj.showReset && document.getElementById("display_reset_link")){
			document.getElementById("display_reset_link").onclick=display_configObj["resetFunction"];
		}
	}

	/***************************************************fix_div_coordinate*********************************************/
	//函数功能：控制提示div的位置，使之刚好出现在文本输入框的下面
	this.fix_div_coordinate = function(){
		var leftpos=0;
		var toppos=0;
		var testtmp=this.object.value;
		var testtmp1=this.object.id;
		aTag = this.object;
		do {
			if( aTag.offsetParent )
			{
			    aTag = aTag.offsetParent;
			}
			else
			{
			    leftpos += aTag.style.left;
			    toppos += aTag.style.top;
			    break;
			}
			leftpos	+= aTag.offsetLeft;
			toppos += aTag.offsetTop;
		//}while(aTag.id!="mainbody");
		}while(aTag.name!="body");
		document.getElementById("getiframe").style.width = this.object.offsetWidth + 'px';
		
		if(document.layers){
			document.getElementById("getiframe").style.left = this.object.offsetLeft	+ parseInt(leftpos) + "px";
			document.getElementById("getiframe").style.top = this.object.offsetTop +	parseInt(toppos) + this.object.offsetHeight + 2 + "px";
		}else{
			document.getElementById("getiframe").style.left =this.object.offsetLeft	+ parseInt(leftpos)  +"px";
			document.getElementById("getiframe").style.top = this.object.offsetTop +	parseInt(toppos) + this.object.offsetHeight + 2 + "px";
		}
		
		if(document.layers){
			document.getElementById("getplatform").style.left = this.object.offsetLeft	+ parseInt(leftpos) + "px";
			document.getElementById("getplatform").style.top = this.object.offsetTop +	parseInt(toppos) + this.object.offsetHeight + 2 + "px";
		}else{
			document.getElementById("getplatform").style.left =this.object.offsetLeft	+ parseInt(leftpos)  +"px";
			document.getElementById("getplatform").style.top = this.object.offsetTop +	parseInt(toppos) + this.object.offsetHeight + 2 + "px";
		}
		//alert("getiframe.left=["+document.getElementById("getiframe").style.left+"]--getiframe.top=["+document.getElementById("getiframe").style.top+"]--getplatform.left=["+document.getElementById("getplatform").style.left+"]--getplatform.top=["+document.getElementById("getplatform").style.top+"]");
	}

    /***************************************************hidden_suggest*********************************************/
	//函数功能：隐藏提示框
	this.hidden_suggest = function (){
		this.lastkeys_val = 0;		 
		document.getElementById("getiframe").style.visibility = "hidden";
		document.getElementById("getplatform").style.visibility = "hidden";
	}

	/***************************************************show_suggest*********************************************/
	//函数功能：显示提示框
	this.show_suggest = function (){
		document.getElementById("getiframe").style.visibility = "visible";
		document.getElementById("getplatform").style.visibility = "visible";
	}
	this.is_showsuggest= function (){
		if(document.getElementById("getplatform").style.visibility == "visible") return true;else return false;
	}

	this.sleep = function(n){
		var start=new Date().getTime(); //for opera only
		while(true) if(new Date().getTime()-start>n) break;
	}
	this.ltrim = function (strtext){
		return strtext.replace(/[\$&\|\^*%#@! ]+/, '');
	}

    /***************************************************add_input_text*********************************************/
	//函数功能：当用户选中时填充相应的城市名字

	this.add_input_text = function (keys,szm){
		 
		keys=this.ltrim(keys)
		this.object.value = keys;
		var id=this.object.id;		
		document.getElementById(this.id2.id).value = szm;
		document.getElementById(id).style.color="#000000";
		document.getElementById(id).value=keys;
     }

	/***************************************************keys_handleup*********************************************/
	//函数功能：用于处理当用户用向上的方向键选择内容时的事件
	this.keys_handleup = function (){
		if(this.lastkeys_val > 0) this.lastkeys_val--;
		var nodes = document.getElementById("getplatform").childNodes;
		if(this.lastkeys_val < 0) this.lastkeys_val = nodes.length-1;
		var b = 0;
		for(var i=2;i<nodes.length;i++){
			if(b == this.lastkeys_val){
				nodes[i].className = "selected";
				this.add_input_text(nodes[i].childNodes[0].childNodes[0].childNodes[1].innerHTML,nodes[i].childNodes[0].childNodes[0].childNodes[2].innerHTML);
			}else{
				nodes[i].className = "mout";
			}
			b++;
		}
	}

	/***************************************************keys_handledown*********************************************/
	//函数功能：用于处理当用户用向下的方向键选择内容时的事件
	this.keys_handledown = function (){
		
		this.lastkeys_val++;
		
		var nodes = document.getElementById("getplatform").childNodes;
		
		if(this.lastkeys_val >= nodes.length-2) {
			
			this.lastkeys_val--;
			return;
		}
		
		var b = 0;
		for(var i=2;i<nodes.length;i++){
			
			if(b == this.lastkeys_val){
				
				nodes[i].className = "selected";
				this.add_input_text(nodes[i].childNodes[0].childNodes[0].childNodes[1].innerHTML,nodes[i].childNodes[0].childNodes[0].childNodes[2].innerHTML);
			}else{
				nodes[i].className = "mout";
			}
			b++;
		}
	}

	this.ajaxac_getkeycode = function (e)
	{
		var code;
		if (!e) var e = window.event;
		if (e.keyCode) code = e.keyCode;
		else if (e.which) code = e.which;
		
		return code;
		
	}

	/***************************************************keys_enter*********************************************/
	//函数功能：用于处理当用户回车键选择内容时的事件
	this.keys_enter = function (){
		  
		var nodes = document.getElementById("getplatform").childNodes;
		for(var i=2;i<nodes.length;i++){
			if(nodes[i].className == "selected"){
				
			  this.add_input_text(nodes[i].childNodes[0].childNodes[0].childNodes[1].innerHTML,nodes[i].childNodes[0].childNodes[0].childNodes[2].innerHTML);
			}
		}
		this.hidden_suggest();
	}

 
function getEvent()
{
 if(document.all)    return window.event;//如果是ie
 func=getEvent.caller;
        while(func!=null){
            var arg0=func.arguments[0];
            if(arg0){if((arg0.constructor==Event || arg0.constructor ==MouseEvent) || (typeof(arg0)=="object" && arg0.preventDefault && arg0.stopPropagation)){return arg0;}            }
            func=func.caller;
        }
       return null;
}

var display_configObj=null;
    /***************************************************display*********************************************/
	//函数功能：入口函数，将提示层div显示出来
	//输入参数：object 当前输入所在的对象，如文本框
	//输入参数：e IE事件对象
	this.display = function (object,id2,e,cObj){
		display_configObj=cObj;
		if(display_configObj && display_configObj["getCityList"] && typeof(display_configObj["getCityList"])=='function'){
			var _ret=display_configObj["getCityList"](object);
			citys=_ret.all_city;
			commoncitys=_ret.commend_city;
		}
		
		this.object = document.getElementById(object);
		this.id2 = document.getElementById(id2);
		if(!document.getElementById("getplatform")) this.init_zhaobussuggest();
		e = e || window.event;
		e.stopPropagation;
		e.cancelBubble = true;
		if (e.target) targ = e.target;  else if (e.srcElement) targ = e.srcElement;
		if (targ.nodeType == 3)  targ = targ.parentNode;

		var inputkeys = this.ajaxac_getkeycode(e);
		switch(inputkeys){
			case 38: //向上方向键
				this.keys_handleup(this.object.id);
			    return;break;
			case 40: //向下方向键
				if(this.is_showsuggest()) this.keys_handledown(this.object.id); else this.show_suggest();
			    return;break;
			case 39: //向右方向键
				return;break;
			case 37: //向左方向键
				return;break;
			case 13: //对应回车键
			    this.keys_enter();
			    return;break;
			case 18: //对应Alt键
				this.hidden_suggest();
			    return;break;
			case 27: //对应Esc键
				this.hidden_suggest();
			    return;break;
		}

		//object.value = this.ltrim(object.value);
		
		//if(object.value == this.lastinputstr) return;else this.lastinputstr = object.value;
		if(window.opera) this.sleep(100);//延迟0.1秒
		parentbject = this;
		if(this.taskid) window.clearTimeout(this.taskid);
        this.taskid=setTimeout("parentbject.localtext();" , this.delaySec)
		//this.taskid = setTimeout("parentbject.remoteurltext();" , this.delaySec);

	}

	//函数功能：从本地js数组中获取要填充到提示层div中的文本内容
	this.localtext = function(){
		var id=this.object.id;
        var suggestions="";
        suggestions=this.getSuggestionByName();
		suggestions=suggestions.substring(0,suggestions.length-1);

		parentbject.show_suggest();
		parentbject.fill_div(suggestions.split(';'));
		parentbject.fix_div_coordinate();
	}

	/***************************************************getSuggestionByName*********************************************/
	//函数功能：从本地js数组中获取要填充到提示层div中的城市名字
	this.getSuggestionByName = function(){
		platkeys = this.object.value;
		var str="";
        platkeys=this.ltrim(platkeys);
		if(!platkeys){
			for(i=0;i<commoncitys.length;i++){
				str+=commoncitys[i][2]+","+commoncitys[i][1]+","+commoncitys[i][0]+";";
			}
			return str;
        }
		else{
		   platkeys=platkeys.toUpperCase();
		   
			for(i=0;i<citys.length;i++){
				try{
			    if(//this.getLeftStr(citys[i][0],platkeys.length).toUpperCase()==platkeys||
				   (citys[i][1].toUpperCase().indexOf(platkeys)!=-1)||
				   this.getLeftStr(citys[i][2],platkeys.length).toUpperCase()==platkeys||
				   this.getLeftStr(citys[i][3],platkeys.length).toUpperCase()==platkeys)
					str+=citys[i][2]+","+citys[i][1]+","+citys[i][0]+";";
				}catch(e){
					alert(e+":"+i+citys[i]+" length : "+citys.length);
				}
			}
			return str;
		}
	}

	/***************************************************getLeftStr************* *************************************/
    //函数功能：得到左边的字符串
    this.getLeftStr = function(str,len){

        if(isNaN(len)||len==null){
            len = str.length;
        }
        else{
            if(parseInt(len)<0||parseInt(len)>str.length){
                len = str.length;
             }
        }
        return str.substr(0,len);
    }

	/***************************************************parentIndexOf************* *************************************/
    //函数功能：得到子结点在父结点的位置
	function parentIndexOf(node){
	  for (var i=0; i<node.parentNode.childNodes.length; i++){
			if(node==node.parentNode.childNodes[i]){return i;}
	  }
   }


}

function showSearch(obj,type){
	
	
    if(type==1){
        if(document.getElementById(obj).value==""){
			document.getElementById(obj).style.color="#C1C1C1";
			document.getElementById(obj).value="中文/拼音";
		}
    }else{
        if(document.getElementById(obj).value=="中文/拼音"){
			document.getElementById(obj).style.color="#000000";
            document.getElementById(obj).value="";
		}
    }
}


 
 var suggest = new city_suggest();
 function search(){
	if(!checkform()){
	   return;
	}
	InlandForm.submit();

}

function change_iframe(idname,urlcity){
	idname.location.href=urlcity;
}
//改变搜索框文字
function changetext(thisid){
	if(thisid == "search1"){
		commoncitys = commoncitysHotel;
		citys = citysHotel;
		document.getElementById("hCity").value = "中文/拼音";
	}else if(thisid == "search2"){
		commoncitys = commoncitysFlight;
		citys = citysFlight;
		document.getElementById("fromcity").value = "中文/拼音";
	}

	for(i=1; i<=3; i++)
	{
		var tdid="search"+i;
		document.getElementById(tdid).className="searchitem_b";
	}
	
	document.getElementById(thisid).className="searchitem_r";
}
<!-- 搜索框更换-->
function closeothers(thisid) {
  if (thisid.style.display=="") { 
	hotel.style.display="none";
	plane.style.display="none";
	pkg.style.display="none";
	
    thisid.style.display="";
  }
  else{
  thisid.style.display="";
  }
}